﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Admin: LogIn
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h1>LogOn</h1>
<% if ((bool?) ViewData["lastLoginFailed"] == true ) { %>
    <div class="Message">Sorry, your login attempt failed. Please try again.</div>
<% }%>

<p> Please log in to access the administrative area :</p>
<% using(Html.BeginForm()) {%>
    <div> Login Name: <%= Html.TextBox("name") %></div>
    <div>Password: <%= Html.Password("password") %></div>
    <p><input type="submit" value="Log in" /></p>
<% }%>
</asp:Content>
